import Vue from 'vue'

import App from './App.vue'
import router from './router'
import store from './store'
// Vue.prototype.$enum = require('./utils/enum').default
// Vue.prototype.$adap = require('./utils/adap').default
Vue.prototype.$vt = require('v-tool').default
// import vTool from 'v-tool'

// 导入共用组件 utils enum
Vue.prototype.$utils = require('./utils').default
// Vue.use(vTool)
Vue.config.productionTip = false

const vue = new Vue({
  router,
  store,
  vuetify: require('./plugins/vuetify').default,
  elementUI: require('./plugins/elementUI').default,
  render: h => h(App)
})

const servicePath = 'http://192.168.1.68:8080' // 打包服务地址
Vue.prototype.$vt.compass(vue, [
  { repo: 'lib', type: 'lib', url: `${servicePath}/lib/dist/lib.umd.min.js` }
]).then(_ => {
  vue.$mount('#app')
})
